MatrixQ
MatrixQ[expr] gives True if expr is a list of lists or a two-dimensional SparseArray object that can represent a matrix, and gives False otherwise.
MatrixQ[expr,test] gives True only if test yields True when applied to each of the matrix elements in expr.
Please visit the official Wolfram Language Reference for more details and examples on core symbols.